const check = async (browser, page) => {
    const start = "" + Date.now();
    console.log(start + '开始签到任务')
    const checkeBtn = await page.locator("xpath=//button[text()='Check in']").all()
    if (checkeBtn.length === 0){
        console.log('已签到')
        return;
    }
    await checkeBtn[0].click()
    const end = "" + Date.now();
    console.log(end + "完成签到操作!")
}

module.exports = { check };